﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace OnlineMusic
{
    class BackgroundLabel : Label
    {
        public void DrawString(string strValue)
        {
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            /*
            SizeF size = this.Size;
            StringFormat myformat = new StringFormat();
            Int32 lNum = (Int32)Math.Log((Double)this.TextAlign, 2);
            myformat.LineAlignment = (StringAlignment)(lNum / 4);
            myformat.Alignment = (StringAlignment)(lNum % 4);
            myformat.FormatFlags = StringFormatFlags.FitBlackBox;
            Font font = this.Font; // new Font(this.Font.FontFamily, this.Font.Size + 1);

            Rectangle rectBase = new Rectangle(0, 0, this.Width, this.Height);
            e.Graphics.DrawString(this.Text, font, Brushes.White, rectBase, myformat);
            */
            base.OnPaint(e);
        }
    }
}
